import http from "@/api/index";

export function deviceCount(data:Object): Promise<any> {
  return http.request({
    url: `front/data/deviceCount`,
    method: "POST",
    data:data
  });
}
export function detectionLog(data:Object): Promise<any> {
  return http.request({
    url: `front/data/detectionLog`,
    method: "POST",
    data:data
  });
}
export function deviceLog(data:Object): Promise<any> {
  return http.request({
    url: `front/data/deviceLog`,
    method: "POST",
    data:data
  });
}

export function deviceList(data:Object): Promise<any> {
  return http.request({
    url: `/admin/config/deviceList`,
    method: "POST",
    data:data
  });
}

export function getDeviceList(data:Object):Promise<any> {
  return http.request({
    url:`device/data/getDeviceList`,
    method:"POST",
    data:data
  })
}
export function getDeviceLoglist(data:Object):Promise<any> {
  return http.request({
    url:`device/data/getDeviceLog`,
    method:"POST",
    data:data
  })
}